// 引入文件
//  公用样式初始样式
require("../../assets/css/index.less")
require("./countdown.less");
require("../../assets/fonts/iconfont.css")



// 引入工具函数
const dom = require('../../utils/dom')


dom.ready(function() {
    let timeId = null;
    timeId = setInterval(function() {
        let num = dom.getEle('h1').innerHTML
        num--
        dom.getEle('h1').innerHTML = num
        if (num == 0) {
            dom.getEle('h1').innerHTML = 'GO'
            clearInterval(timeId)
            setTimeout(function() {
                location.href = 'movement.html'
            }, 1500)
        }
    }, 1000)
})